#define _CRT_SECURE_NO_WARNINGS
#pragma warning(disable : 4996)
#pragma warning(disable : 6031)

#include "seqlist.h"

test1()
{
	SeqList seq = { 0 };
	SeqListInit(&seq);
	SeqListPushBack(&seq, 1);
	SeqListPushBack(&seq, 2);
	SeqListPushBack(&seq, 3);
	SeqListPushBack(&seq, 4);
	SeqListPushFront(&seq, 3);
	SeqListDestroy(&seq);
}

test2()
{
	SeqList seq = { 0 };
	SeqListInit(&seq);
	SeqListPushFront(&seq, 1);
	SeqListPushFront(&seq, 2);
	SeqListPushFront(&seq, 3);
	SeqListPushFront(&seq, 4);
	SeqListPushFront(&seq, 3);
	SeqListPrint(&seq);

	SeqListDestroy(&seq);
}

test3()
{
	SeqList seq = { 0 };
	SeqListInit(&seq);
	SeqListPushFront(&seq, 1);
	SeqListPushFront(&seq, 2);
	SeqListPushFront(&seq, 3);
	SeqListPushFront(&seq, 4);
	SeqListPushFront(&seq, 3);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);

	SeqListDestroy(&seq);
}

test4()
{
	SeqList seq = { 0 };
	SeqListInit(&seq);
	SeqListPushFront(&seq, 1);
	SeqListPushFront(&seq, 2);
	SeqListPushFront(&seq, 3);
	SeqListPushFront(&seq, 4);
	SeqListPushFront(&seq, 3);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopFront(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListDestroy(&seq);
}

test5()
{
	SeqList seq = { 0 };
	SeqListInit(&seq);
	SeqListPushFront(&seq, 1);
	SeqListPushFront(&seq, 2);
	SeqListPushFront(&seq, 3);
	SeqListPushFront(&seq, 4);
	SeqListPushFront(&seq, 3);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListPopBack(&seq);
	SeqListPrint(&seq);
	printf("\n");

	SeqListDestroy(&seq);
}
int main()
{
	//test1();
	//test2();
	//test3();
	test4();
	//test5();
	return 0;
}